#!/usr/bin/env bash

JAVA_HOME=/opt/jdk/current
HADOOP_HOME=/opt/hadoop/current
HADOOP_CONF_DIR=$HADOOP_HOME/etc/hadoop
YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop

LD_LIBRARY_PATH=$HADOOP_HOME/lib/native/:$LD_LIBRARY_PATH

SCALA_HOME=/opt/scala/current

SPARK_EXECUTOR_MEMORY=1G
SPARK_WORKER_CORES=2

SPARK_DAEMON_JAVA_OPTS="-Dspark.deploy.recoveryMode=ZOOKEEPER -Dspark.deploy.zookeeper.url=zookeeper-01:2181,zookeeper-02:2181,zookeeper-03:2181 -Dspark.deploy.zookeeper.dir=/spark-ha"
SPARK_HISTORY_OPTS="-Dspark.history.ui.port=18080  -Dspark.history.fs.logDirectory=hdfs://xi-hadoop/shared/spark-logs -Dspark.history.retainedApplications=30"
# SPARK_MASTER_HOST=spark-01
SPARK_MASTER_WEBUI_PORT=9980